# $OpenBSD: Makefile,v 1.7 2015/04/03 15:12:28 pascal Exp $

ONLY_FOR_ARCHS =	i386 amd64

COMMENT =		reset NT/W2K/XP/Vista/W7 password

V =			100627
REVISION =		3
DISTNAME =		chntpw-source-${V}
PKGNAME =		chntpw-${V}
EXTRACT_SUFX =		.zip
CATEGORIES =		security

HOMEPAGE =		http://pogostick.net/~pnh/ntpasswd/

MAINTAINER =		Ian Darwin <ian@openbsd.org>

# Mix of GPL and LGPL
PERMIT_PACKAGE_CDROM =	Yes
WANTLIB =		c

MASTER_SITES =		http://pogostick.net/~pnh/ntpasswd/

MAKE_ENV =		CC=$(CC)

USE_GMAKE =		Yes

NO_TEST =		Yes

WRKDIST =		${WRKDIR}/chntpw-${V}/

PROGS =			chntpw chntpw.static cpnt reged reged.static
DOCDIR =		$(PREFIX)/share/doc/chntpw

do-install:
	cd $(WRKDIST); $(INSTALL_PROGRAM) $(PROGS) $(PREFIX)/bin
	$(INSTALL_DATA_DIR) $(DOCDIR)
	$(INSTALL_DATA) $(WRKDIST)/*.txt $(DOCDIR)

.include <bsd.port.mk>
